#include "TripleRanging.h"
#include <iostream>
#include <cassert>

double TripleRanging::Ranging(const std::vector<double>& beaconRSSI)
{
	assert(beaconRSSI.size() >= 3);
	
	auto value = (beaconRSSI[0] + beaconRSSI[1] + beaconRSSI[2]) / 3.0;
	std::cout << "三设备测距" << value << std::endl;
	return value;
}
